.class Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;
.super Landroid/os/Handler;
.source "FileTransferProcessActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->J()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    .line 1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 2
    iget p1, p1, Landroid/os/Message;->what:I

    const/4 v0, 0x1

    if-eq p1, v0, :cond_1

    const/4 v0, 0x4

    if-eq p1, v0, :cond_0

    goto/16 :goto_0

    .line 3
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->o(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)Landroid/widget/ProgressBar;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->c(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)J

    move-result-wide v0

    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->b(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)I

    move-result v2

    int-to-long v2, v2

    div-long/2addr v0, v2

    long-to-int v1, v0

    invoke-virtual {p1, v1}, Landroid/widget/ProgressBar;->setProgress(I)V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->d(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)Landroid/widget/TextView;

    move-result-object p1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->c(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)J

    move-result-wide v2

    iget-object v4, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {v4}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->p(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)J

    move-result-wide v4

    invoke-static {v1, v2, v3, v4, v5}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->a(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;JJ)D

    move-result-wide v1

    double-to-int v1, v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "%"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 5
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->o(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)Landroid/widget/ProgressBar;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->p(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)J

    move-result-wide v0

    const-wide/32 v2, 0x7fffffff

    cmp-long p1, v0, v2

    if-lez p1, :cond_2

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    const/16 v0, 0x64

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->a(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;I)I

    .line 8
    :cond_2
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {p1}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->o(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)Landroid/widget/ProgressBar;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->p(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)J

    move-result-wide v0

    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity$e;->a:Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;

    invoke-static {v2}, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->b(Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;)I

    move-result v2

    int-to-long v2, v2

    div-long/2addr v0, v2

    long-to-int v1, v0

    invoke-virtual {p1, v1}, Landroid/widget/ProgressBar;->setMax(I)V

    :goto_0
    return-void
.end method
